package team.se.tms.service;

import team.se.tms.dto.MenuDetail;
import team.se.tms.dto.Page;
import team.se.tms.po.MenuInfo;

import java.util.List;

/**
 * 菜单信息业务层接口,定义了菜单信息业务层调用的方法
 *
 * @author winkyle
 * @date 2018/11/18
 */
public interface MenuInfoService {

    /**
     * 获取全部菜单信息
     *
     * @param page 分页
     * @return 菜单列表
     * @throws Exception 异常
     * @create on 2018/11/18 by winkyle
     */
    List<MenuInfo> listMenuInfos(Page page) throws Exception;

    /**
     * 获取全部菜单信息，子菜单为父菜单的属性
     *
     * @param menuType 菜单类型
     * @return 菜单列表
     * @throws Exception 异常
     * @create on 2018/11/18 by winkyle
     */
    List<MenuDetail> listMenuDetails(String menuType) throws Exception;
}
